<template>
  <div class="notfound">
    <van-empty image="error" description="当前页面丢失" />
    <span @click="fun()">返回首页</span>
  </div>
</template>

<script>
export default {
  methods: {
    fun() {
      // js跳转url
      this.$router.push("/homeindex");
    }
  }
};
</script>

<style lang="scss" scoped>
.notfound {
  width: 50%;
  margin: 26.667vw auto;
  text-align: center;
  span {
    display: inline-block;
    padding: 1.333vw 2.667vw;
    border: 0.267vw solid rgb(243, 119, 119);
    border-radius: 4.267vw;
  }
}
</style>